/*
* @Author: root
* @Date:   2017-12-09 13:42:36
* @Last Modified by:   root
* @Last Modified time: 2017-12-09 14:20:00
*/
'use strict';

var _utils = require('util/util.js');

var _payment = {
   
    // 获取商品列表信息
  getPaymentInfo : function (orderNumber, resolve, reject) {
    _utils.request({
      url : _utils.getServerUrl('/order/pay.do'),
      data : {
        orderNo : orderNumber
      },
      success : resolve,
      error : reject
    });
  },
  //获取订单状态
   getPaymentStatus : function (orderNumber, resolve, reject) {
    _utils.request({
      url : _utils.getServerUrl('/order/query_order_pay_status.do'),
      data : {
        orderNo : orderNumber
      },
      success : resolve,
      error : reject
    });
  },
}
module.exports = _payment;